<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>修改页面</title>
  </head>
  
  <body>
   
  <form action="<%=request.getContextPath() %>/equipment/equipment!updateEquipment.action" method="post">
   		<input type="hidden" name="equipment.id" value="${equipment_a.id }" />
   		IP&nbsp&nbsp地址:<input type="text" name="equipment.ip" value="${equipment_a.ip }" /><br>
   		设备名称:<input type="text" name="equipment.name" value="${equipment_a.name }" /><br>
   		设备型号:<input type="text" name="equipment.version" value="${equipment_a.version }" /><br>
   		备&nbsp&nbsp&nbsp注&nbsp:<textarea rows="6" cols="50" name="equipment.note">${equipment_a.note }</textarea><br>
   		购买日期:<input type="text" name="equipment.buydate" value="${equipment_a.buydate }" /><br>
   		设备类型:<select name="equipment.type.id">
		   			<option value="-1">==请选择==</option>
		   			<c:forEach items="${typeList_a}" var="type">
		   				<option value="${type.id }" ${equipment_a.type.id==type.id?"selected='selected'":"" }>${type.typeName }</option>
		   			</c:forEach>
		   		</select><br>
   		生产厂家:<select name="equipment.factory.id">
		   			<option value="-1">==请选择==</option>
		   			<c:forEach items="${factoryList_a}" var="factory">
		   				<option value="${factory.id }" ${equipment_a.factory.id==factory.id?"selected='selected'":"" }>${factory.factoryName }</option>
		   			</c:forEach>
		   		</select><br>
   		设备状态:<select name="equipment.status.id">
		   			<option value="-1">==请选择==</option>
		   			<c:forEach items="${statusList_a}" var="status">
		   				<option value="${status.id }" ${equipment_a.status.id==status.id?"selected='selected'":"" }>${status.statusName }</option>
		   			</c:forEach>
   				</select><br>
   		<input type="submit" value="保存修改" />
   	</form>
  </body>
</html>
